#pragma once
#include<string>
#include<fstream>
#include "student.h"
using namespace std;

// 小学生类
class PrimaryStudent : virtual public Student {
public:
    double english;    // 英语成绩
    double math;       // 数学成绩
    double chinese;    // 语文成绩
    
public:
    PrimaryStudent() {}
    
    // 实现所有纯虚函数
    void input() override;
    void display() const override;
    double calculateTotalScore() const override;
    void save(ofstream& out) const override;
    void load(ifstream& in) override;

    //double getEnglish() override;
    //double getMath() override;
    //double getChinese() override;
};
